package com.example.yls.demoa;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;

public class MyService extends Service {
    boolean isLive=true;
    MyBinder myBinder;

    public MyService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        Log.e("Myservice","onBinder");
     return myBinder;

    }

    @Override
    public void onCreate() {
        super.onCreate();
        myBinder = new MyBinder();
        Log.e("e", "oncreate");

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        isLive=false;
        Log.e("myService","ondestroy");
    }
}

